-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/modularize #407
Feat/modularize #407
Conversation
Supporting data request callbacks
.github/workflows/npm-publish.yml
Outdated
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 |
@@ -4,28 +4,23 @@ | |||
|
|||
pragma solidity >=0.8.0 <0.9.0; | |||
|
|||
import "../patterns/ERC165.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not using ERC165, could we delete it?
README.md
Outdated
- **`hash()`**: | ||
- _Description_: | ||
- Returns SHA256 hash of Witnet Data Request as CBOR-encoded bytes. | ||
- Make sure you run an ETH/RPC provider running at the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Make sure you run an ETH/RPC provider running at the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)). | |
- Make sure you run an ETH/RPC provider for the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)). |
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-promise": "^6.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we aren't using this eslint
files but eslint-config-standard
, could we remove the other ones?
package.json
Outdated
"eth-gas-reporter": "^0.2.27", | ||
"eth-helpers": "^1.3.0", | ||
"hardhat": "^2.19.5", | ||
"js-sha256": "^0.11.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using this dependency?
"js-sha256": "^0.11.0", |
package.json
Outdated
"truffle": "^5.11.5", | ||
"truffle-assertions": "^0.9.2", | ||
"truffle-flattener": "^1.6.0", | ||
"typescript": "latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any typescript file?
"typescript": "latest" |
scripts/prepare.js
Outdated
if (os.type() === "Windows_NT") { | ||
exec("del /s /q artifacts\\*.dbg.json") | ||
} else { | ||
exec("find ./artifacts -name *.dbg.json -exec rm -r {} \\;") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exec("find ./artifacts -name *.dbg.json -exec rm -r {} \\;") | |
exec('find ./artifacts -name "*.dbg.json" -exec rm -r {} \\;') |
pragma solidity >=0.6.0 <0.9.0; | ||
|
||
import "../interfaces/IERC20.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or if we want to keep a file for each of the contracts from openzeppelin, do the same for IERC20.sol
|
||
/// @notice Reference to Witnet Data Requests Bytecode Registry | ||
WitnetBytecodes immutable public override(IWitnetRequestFactory, WitnetRequestTemplate) registry; | ||
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to. | |
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to. |
No description provided.